<div id="header">
    <h1>{$name}</h1>
    <!--{if $user_uid > '0'}-->
       <a href="index.php?{$Bingz_ml}=user"  id="Top1_loginMenu"><img src="{$user_tx}"/></a>
    <!--{else}-->
       <a href="index.php?{$Bingz_ml}=user&{$Bingz_md}=login" id="Top1_login">登录|注册</a> 
    <!--{/if}-->
    <a href="{$plugin_Address}" id="back" >返回</a>
</div>
<!--{if $pdid == 1 }-->
    <div id="container">
        <div class="content">
        	你好，你没有登陆！<br/>
          <a href="index.php?{$Bingz_ml}=user&{$Bingz_md}=login">进入登陆</a>
          <meta http-equiv=refresh content="3;url=index.php?{$Bingz_ml}=user&{$Bingz_md}=login">
        </div>
    </div>
<!--{elseif $pdid == 2 }-->    
    <div id="container">
        <div class="box"><div class="content">
        	你好，数据出错！<br/>
          <a href="{if !$htmlsz}index.php?{$Bingz_ml}=liaotian{else}liaotian.html{/if}">返回页面</a>
          <meta http-equiv=refresh content="3;url={if !$htmlsz}index.php?{$Bingz_ml}=liaotian{else}liaotian.html{/if}">
        </div></div>
    </div>
<!--{elseif $pdid == 3 }-->    
    <div id="container">
        <div class="box">
         你好，聊天房间需要密码进入<br/>
         <form method="POST" action="{if !$htmlsz}index.php?{$Bingz_ml}=liaotian&{$Bingz_md}=list&act=ok&fid={$fid}{else}liaotian-list-ok-{$fid}.html{/if}">
         <input class="text" type="text" name="mm"/>
         <input type="submit" class="submit"  value="验证" name="b1" />
         </form>
        </div>
    </div>
<!--{elseif $pdid == 4 }-->
    <div id="container">
        <div class="box"><div class="content">
        	你好，密码正确请进入！<br/>
          <a href="{if !$htmlsz}index.php?{$Bingz_ml}=liaotian&{$Bingz_md}=list&fid={$fid}{else}liaotian-list-{$fid}.html{/if}">返回页面</a>
          <meta http-equiv=refresh content="3;url={if !$htmlsz}index.php?{$Bingz_ml}=liaotian&{$Bingz_md}=list&fid={$fid}{else}liaotian-list-{$fid}.html{/if}">
        </div></div>
    </div>
<!--{elseif $pdid == 5 }-->
    <div id="container">
        <div class="box"><div class="content">
        	你好，密码错误！<br/>
          <a href="{if !$htmlsz}index.php?{$Bingz_ml}=liaotian&{$Bingz_md}=list&fid={$fid}{else}liaotian-list-{$fid}.html{/if}">返回页面</a>
          <meta http-equiv=refresh content="3;url={if !$htmlsz}index.php?{$Bingz_ml}=liaotian&{$Bingz_md}=list&fid={$fid}{else}liaotian-list-{$fid}.html{/if}">
        </div></div>
    </div>
<!--{elseif $pdid == 6 }-->
    <div id="container">
        <div class="topicList">
            <ul id="topicListFilter"> 
            	          <li><a id="repFilter_ctl00_btnFilter" href="{$plugin_Address}">聊天大厅</a></li>
                        <li><a id="repFilter_ctl01_btnFilter" href="{$plugin_Address}&{$Bingz_md}=list&fid={$fid}">{$name}</a></li>
                        <li><a id="repFilter_ctl02_btnFilter" class="current" href="{$plugin_Address}&{$Bingz_md}=list&act=lah&fid={$fid}">拉黑</a></li>
            </ul>
        </div>
        <div class="box">
                <div class="listViewDis2">
                	<ul>
                      <!--{if $tsid }-->
                       <li>你好！权限不足请离开！</li>
                      <!--{else}-->
<li><form action="{$plugin_Address}&{$Bingz_md}=go&act=hwok&fid={$fid}" method="POST" >
    <b>选择聊天用户</b>:<br/>
                <select  class="text" name="uid">
                <!--{if !$liao}--><option value="">没有会员数据！</option><!--{/if}-->
                <!--{loop $liao $vak}-->
                  <option value="{$vak[uid]}">{$vak[name]}</option>
                <!--{/loop}-->
                </select><br/>
   <b>设定拉黑时间</b>:<br/>    <select  class="text" name="sj">
                 	<option value="1">一天</option>
                 	<option value="2">二天</option>
                 	<option value="3">三天</option>
                 	<option value="4">四天</option>
                 	<option value="5">五天</option>
                 	<option value="6">六天</option>
                 	<option value="7">一周</option>
                 	<option value="30">一月</option>
                 	<option value="60">二月</option>
                 	</select><br/>
    <input class="submit" type="submit" name="submit" value="拉入小黑屋" />
</form>
</li>
                      <!--{/if}-->
                  </ul>
                </div>
        </div>
        </div>
<!--{else}-->
<script language="javascript">
var xmlHttp
function GetXmlHttpObject(){
var xmlHttp=null;
try
 {
 xmlHttp=new XMLHttpRequest();
 }
catch (e)
 {
 try
  {
  xmlHttp=new ActiveXObject("Msxml2.XMLHTTP");
  }
 catch (e)
  {
  xmlHttp=new ActiveXObject("Microsoft.XMLHTTP");
  }
 }
 return xmlHttp;
}
function showHinta(){
xmlHttp=GetXmlHttpObject()
if(xmlHttp==null){//浏览器不支持
  location.href="{$plugin_Address}"
  return
  }
var f = document.user_info;
var fid = f.fid.value;
var mm = f.mm.value;
var postStr = "mm="+ mm +"&fid="+ fid;
if (mm == "" || mm == "\n" || mm == "\n\n" || mm == "\n\n\n"){
    alert('请输入内容！');
    return;
}
var url="{$plugin_Address}&"
url=url+postStr+"&mod=post&act=ok&"+Math.random();
xmlHttp.onreadystatechange=stateChanged;
xmlHttp.open("GET",url,true);
xmlHttp.send(null);
}
function stateChanged() {
if (xmlHttp.readyState==4 || xmlHttp.readyState=="complete"){
   if(xmlHttp.responseText == '1'){
   	  alert('请登陆！');
      document.getElementById('mm').value="";
   }else if(xmlHttp.responseText == '2'){
   	  alert('提交数据有误！');
      document.getElementById('mm').value="";
   }else if(xmlHttp.responseText == '4'){
      alert('你被加黑，不能发言！');  
      document.getElementById('mm').value="";
   }else if(xmlHttp.responseText == '5'){
      document.getElementById('mm').value="";
      swaxin();
   }else{
      alert('发言失败！');  
      document.getElementById('mm').value="";
   }
 }
}
function swaxin(){
xmlHttp=GetXmlHttpObject()
if (xmlHttp==null){
  location.href="{$plugin_Address}"
  return
  }
var url="{$plugin_Address}&"
var udrl = document.location.href;
url=url+"&mod=post&act=nr&"+Math.random();
xmlHttp.open("GET",url,true);
xmlHttp.onreadystatechange=stateChaswaxin;
xmlHttp.send(null);
}
function stateChaswaxin() {
if (xmlHttp.readyState==4 || xmlHttp.readyState=="complete"){
   if(xmlHttp.responseText){
   	     document.getElementById("txt").innerHTML=xmlHttp.responseText; 
   }else{
   	     document.getElementById("txt").innerHTML="<div class='content'><img src={$plugin_Addmm}/images/1408276807.jpg></div>"; 
   }
 }
}
function hqsx(){//新
xmlHttp=GetXmlHttpObject()
if(xmlHttp==null){
   location.href="{$plugin_Address}"
   return
}
var url="{$plugin_Address}&"
url=url+"&mod=post&act=hq&"+Math.random();
xmlHttp.open("GET",url,true);
xmlHttp.onreadystatechange=stateChangeda;
xmlHttp.send(null);
}
function stateChangeda() {
if (xmlHttp.readyState==4 || xmlHttp.readyState=="complete"){
   if(xmlHttp.responseText == '1'){
   	  swaxin();
   } 
 }
}
setInterval("hqsx()", 5000);
function qinpin(){
xmlHttp=GetXmlHttpObject()
if (xmlHttp==null){
  location.href="{$plugin_Address}"
  return
  }
var url="{$plugin_Address}&"
url=url+"&mod=post&act=qp&"+Math.random();
xmlHttp.open("GET",url,true);
xmlHttp.onreadystatechange=stateChangeda;
xmlHttp.send(null);
}

</script>
    <div id="container">
        <div class="topicList">
            <ul id="topicListFilter">
            	          <li><a id="repFilter_ctl00_btnFilter" href="{$plugin_Address}">聊天大厅</a></li>
                        <li><a id="repFilter_ctl01_btnFilter" class="current" href="{$plugin_Address}&{$Bingz_md}=list&fid={$fid}">{$name}</a></li>
                        <li><a id="repFilter_ctl02_btnFilter" href="{$plugin_Address}&{$Bingz_md}=list&act=lah&fid={$fid}">拉黑</a></li>
            </ul>
        </div>
        <div class="box">
                <!--{if $contentgg }-->
                <div class="listViewDis2">
                	<ul>
                       <li>公告：{$contentgg}</li>
                  </ul>
                </div>
                <!--{/if}-->
                  <form name="user_info" method="post" action="">
                  	<input class="text" type="hidden" id="fid" name="fid" value="{$fid}" >
                  	<textarea class="textarea" type="text" id="mm" name="mm" placeholder="" ></textarea><br/>
                  	<input class="submit" type="button" value="发言" onClick="showHinta();">
                  	<input class="submit" type="button" value="刷新" onclick="swaxin();"/>
                  	<input class="submit" type="button" value="清屏" onclick="qinpin();"/>
                  </form>
                  <script language="javascript">document.onload=swaxin();</script>
                  <span id="txt"></span>
        </div>
<!--{/if}-->